package com.usian.service;

import com.github.pagehelper.PageInfo;
import com.usian.pojo.Course;
import com.usian.pojo.CourseDto;
import com.usian.pojo.CourseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Email 2781921355@qq.com
 * @Author 马忠豪
 * @Date 2023/8/23 19:44
 */
@FeignClient(value = "day091")
public interface CourseService {
    @RequestMapping("trainconsumer/findCourse")
    public Integer findCourse(@RequestParam("token") String token);
    @RequestMapping("trainconsumer/findCourseName")
    public List<Course> findCourseName();
    @RequestMapping("course/toDianzan")
    public Integer toDianzan(@RequestParam("id") Integer id, @RequestParam("token") String token);
    @RequestMapping("trainconsumer/getNewCourse")
    public PageInfo<Course> getNewCourse(@RequestBody CourseDto courseDto);
    @RequestMapping("course/getNewCourseTo")
    public CourseVo getNewCourseTo();
    @RequestMapping("TrainTopicCourse/getTrainCourse")
    public List<Course> getTrainCourse(@RequestParam("token") String token);
}
